package com.steak.business.client;

import com.steak.common.domain.dataobject.tcc.Integral;
import com.steak.common.domain.dto.IntegralDTO;
import com.steak.common.result.Response;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 刘牌
 * @Title:
 * @date 2022/3/116:31
 */
@FeignClient(value = "cloud-integral")
public interface IntegralClient {

    @RequestMapping("/integral/increaseIntegral")
    Response increaseIntegral(IntegralDTO integralDTO);

    @RequestMapping("/integral/updateFreezeIntegralToZeroByUserId")
    Response updateFreezeIntegralToZeroByUserId(@RequestParam Integer userId);

    @RequestMapping("/integral/updateIntegralBalance")
    Response updateIntegralBalance(IntegralDTO integralDTO);
}
